<?php
		session_start();
?>
<!doctype html>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="../css/reset.css">
	<link rel="stylesheet" type="text/css" href="../css/jquery.fullPage.css">
    <link rel="stylesheet" type="text/css" href="../css/mobile.css">
    
    
    <script src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
    
    <script src="../js/plugins/jquery-1.11.0.min.js"></script>
    <script src="../js/plugins/jquery-ui-1.10.4.custom.min.js"></script>
    
	<script src="../js/plugins/jquery.fullPage.min.js"></script>
    <script src="../js/plugins/gmaps.js"></script>
    <script src="../js/mobile.js"></script>
	<script src="../js/plugins/shake.js"></script>

<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<!--side 1-->
<div class="section " id="section0">
    <div id="logo"><img src="../images/Matildemilkshake2.png" alt="logo"></div>
    <div class="wrappers">
		<?php
        if(!isset($_SESSION['usernavn']) || !isset($_SESSION['password']) and !isset($_GET["besked"])){
        echo '		<form class="form-horizontale" role="form" action="do_mobil_login.php" method="post">
                        <div class="form-group">
                            <label class="sr-only" for="navn">Brugernavn</label>
                            <input type="text" class="form-control" name="usernavn" id="usernavn" placeholder="Skriv dit brugernavn" />
                        </div>
                        <div class="form-group">
                            <label class="sr-only" for="password">Password</label>
                            <input type="password" class="form-control" name="password" id="password" placeholder="Skriv dit password" />
                        </div>
                        <button type="submit" class="btn btn-warning"name="send">Login</button>
                    </form>'
                    ;}	
          else if(isset($_SESSION['usernavn'])){
                $array = unserialize(file_get_contents("../data/user.txt"));
                $points = $array['points'];
                
                echo "<h1>Du har: $points point</h1>";
                echo "<h1><a href='http://tehwarrer.dk/src/mobile.php#secondPage'>Spil!</a></h1>";
            }
        ?>
    </div>
</div>

<!--side 2-->
<div class="section" id="section1">
    
		<div class="intro">
<div class="wrappers">        <div id="map"></div>
		<p id="Distance" />
			<h1 id="close"></h1></div>
		</div>
</div>
<!--side 3-->
<div class="section" id="section2">
	<div class="intro">
    	<div id="imgwrapper"><img src="../images/milksshakesvanilla.png" alt="vanilla"></div>
    	<div class="wrappers">
    	<h1 id="count">RYST!</h1></div>
	</div>
</div>
</body>
</html>
